import React, { Component } from 'react';
// 属性代理 添加元素
class App extends Component {
  render() {
    return (
      <div>
        <h1>App组件</h1>
      </div>
    );
  }
}
function withBackGroundColor(Cmp){
  return class extends Component{
render(){
  return <div style={{backgroundColor:"red"}}>
    <Cmp></Cmp>
    <Cmp></Cmp>
  </div>
}
  }
}
export default withBackGroundColor(App) ;
